package com.ruoyi.system.domain.webgroup;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.domain.entity.SysUser;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**周榜*/
public class WeeklyList extends BaseEntity {
    private static final long serialVersionUID = 1L;
    /**该表的主键*/
    private Integer weeklyListId;

    /**本周的总学习时长*/
    @Excel(name = "本周的总学习时长")
//    @JsonFormat(pattern="D HH:mm:ss",timezone = "GMT+8")
//    @DateTimeFormat(pattern="D HH:mm:ss")
    private String weeklyListDatetime;

    /**记录当前每周第一次签到时间的年月日*/
    @Excel(name = "记录当前每周第一次签到时间的年月日")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date weeklyListDate;

    /**用户id*/
    @Excel(name = "用户id")
    private Integer userId;

    /**用户详细信息*/
    private SysUser sysUser;
    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    public WeeklyList(Integer weeklyListId, String weeklyListDatetime, Date weeklyListDate, Integer userId) {
        this.weeklyListId = weeklyListId;
        this.weeklyListDatetime = weeklyListDatetime;
        this.weeklyListDate = weeklyListDate;
        this.userId = userId;
    }

    public WeeklyList() {
    }

    public Integer getWeeklyListId() {
        return weeklyListId;
    }

    public void setWeeklyListId(Integer weeklyListId) {
        this.weeklyListId = weeklyListId;
    }

    public String getWeeklyListDatetime() {
        return weeklyListDatetime;
    }

    public void setWeeklyListDatetime(String weeklyListDatetime) {
        this.weeklyListDatetime = weeklyListDatetime;
    }

    public Date getWeeklyListDate() {
        return weeklyListDate;
    }

    public void setWeeklyListDate(Date weeklyListDate) {
        this.weeklyListDate = weeklyListDate;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return super.toString();
    }
}
